package Eyjafjalla.save;

import Eyjafjalla.modcore.EyjafjallaMod;
import Eyjafjalla.patch.PompeiiPatch;
import Eyjafjalla.patch.SiestaPatch;

public class EyjafjallaSave {
    public boolean enter_siesta;
    public boolean face_pompeii;
    public boolean enter_event;
    public int reward_level;
    public int event_percent;

    public EyjafjallaSave(){}

    public void onSave(){
        enter_siesta = SiestaPatch.EnterSista;
        face_pompeii = PompeiiPatch.facePompeii;
        enter_event = PompeiiPatch.enterEvent;
        reward_level = PompeiiPatch.rewardLevel;
        event_percent = PompeiiPatch.eventPercent;
    }

    public void onLoad(){
        SiestaPatch.EnterSista = enter_siesta;
        PompeiiPatch.facePompeii = face_pompeii;
        PompeiiPatch.enterEvent = enter_event;
        PompeiiPatch.rewardLevel = reward_level;
        PompeiiPatch.eventPercent = event_percent;
        EyjafjallaMod.logSomething("=== ONLOAD : EnterSiesta=" + enter_siesta);
        EyjafjallaMod.logSomething("=== ONLOAD : FacePompeii=" + face_pompeii);
        EyjafjallaMod.logSomething("=== ONLOAD : EnterEvent=" + enter_event);
        EyjafjallaMod.logSomething("=== ONLOAD : rewardLevel=" + reward_level);
        EyjafjallaMod.logSomething("=== ONLOAD : EventPercent=" + event_percent);
    }

    public void onDelete(){
        SiestaPatch.EnterSista = false;
        PompeiiPatch.reset();
    }
}
